import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.scss';
import App from './App';
import { ConfigProvider } from 'antd'

const root = ReactDOM.createRoot(
  document.getElementById('root') as HTMLElement
);
root.render(
  <ConfigProvider theme={{
    components: {
      Menu: {
        /* 这里是你的组件 token */
        darkItemBg: "rgb(48, 65, 86)",
        darkPopupBg: "rgb(48, 65, 86)",
        darkItemHoverBg: "rgb(38,52,69)",
        darkSubMenuItemBg: "#1f2d3d",
        darkItemSelectedColor: "rgb(0, 172, 172)",
        darkItemSelectedBg: "transparent",
        itemHeight: 48
      },
    },
    token: {
      /* 这里是你的全局 token */
    },
  }}>
    <App />
  </ConfigProvider>
);